import { request } from "@/utils/service"

export function getArea(params: any) {
  return request({
    url: "/bg/index/getMap",
    method: "get",
    params
  })
}

export function uploadUrl() {
  
  // return import.meta.env.VITE_BASE_API+'/bg/file/upload'
  return process.env.NODE_ENV === 'development'?import.meta.env.VITE_BASE_API+'/bg/file/upload':window.location.origin+'/bg/file/upload'
}

